home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / thinkref / archive / THINKPascalUH2.1.sea / THINKPas Univ Hdr 2.1 / Interfaces / ROMDefs.p < prev    next >
Text File  |  1995-09-12  |  10KB  |  248 lines

  1. { Converted with MPW2TPas Tuesday, September 12, 1995 9:24:10 PM }
  2. {
  3.      File:        ROMDefs.p
  4.  
  5.      Contains:    NuBus card ROM Definitions.
  6.  
  7.      Version:    Technology:    System 7.5
  8.                  Package:    Universal Interfaces 2.1 in “MPW Latest” on ETO #18
  9.  
  10.      Copyright:    © 1984-1995 by Apple Computer, Inc.
  11.                  All rights reserved.
  12.  
  13.      Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  14.                  stack.  Include the file and version information (from above)
  15.                  in the problem description and send to:
  16.                      Internet:    apple.bugs@applelink.apple.com
  17.                      AppleLink:    APPLE.BUGS
  18.  
  19. }
  20.  
  21.  UNIT ROMDefs;
  22.  INTERFACE
  23.  
  24.  
  25. {$IFC UNDEFINED __ROMDEFS__}
  26. {$SETC __ROMDEFS__ := 1}
  27.  
  28. { $PUSH}
  29. { $ALIGN MAC68K}
  30. { $LibExport+}
  31.  
  32. CONST
  33.     appleFormat                    = 1;                            {Format of Declaration Data (IEEE will assign real value)}
  34.     romRevision                    = 1;                            {Revision of Declaration Data Format}
  35.     romRevRange                    = 9;                            {Revision of Declaration Data Format [1..9]}
  36.     testPattern                    = 1519594439;                    {FHeader long word test pattern}
  37.     sCodeRev                    = 2;                            {Revision of code (For sExec)}
  38.     sExec2                        = 2;
  39.     sCPU68000                    = 1;                            {CPU type = 68000}
  40.     sCPU68020                    = 2;                            {CPU type = 68020}
  41.     sCPU68030                    = 3;                            {CPU type = 68030}
  42.     sCPU68040                    = 4;                            {CPU type = 68040}
  43.     sMacOS68000                    = 1;                            {Mac OS, CPU type = 68000}
  44.     sMacOS68020                    = 2;                            {Mac OS, CPU type = 68020}
  45.     sMacOS68030                    = 3;                            {Mac OS, CPU type = 68030}
  46.     sMacOS68040                    = 4;                            {Mac OS, CPU type = 68040}
  47.     board                        = 0;                            {Board sResource - Required on all boards}
  48.     displayVideoAppleTFB        = 16843009;                        {Video with Apple parameters for TFB card.}
  49.     displayVideoAppleGM            = 16843010;                        {Video with Apple parameters for GM card.}
  50.     networkEtherNetApple3Com    = 33620225;                        {Ethernet with apple parameters for 3-Comm card.}
  51.     testSimpleAppleAny            = -2147417856;                    {A simple test sResource.}
  52.     endOfList                    = 255;                            {End of list}
  53.     defaultTO                    = 100;                            {100 retries.}
  54.  
  55. { sResource flags for sRsrc_Flags }
  56.     fOpenAtStart                = 1;                            { set => open the driver at start time, else do not }
  57.     f32BitMode                    = 2;                            { set => a 32-bit address will be put into dctlDevBase (IM Devices 2-54) }
  58.  
  59.     sRsrcType                    = 1;                            {Type of sResource}
  60.     sRsrcName                    = 2;                            {Name of sResource}
  61.     sRsrcIcon                    = 3;                            {Icon}
  62.     sRsrcDrvrDir                = 4;                            {Driver directory}
  63.     sRsrcLoadDir                = 5;                            {Load directory}
  64.     sRsrcBootRec                = 6;                            {sBoot record}
  65.     sRsrcFlags                    = 7;                            {sResource Flags}
  66.     sRsrcHWDevId                = 8;                            {Hardware Device Id}
  67.     minorBaseOS                    = 10;                            {Offset to base of sResource in minor space.}
  68.     minorLength                    = 11;                            {Length of sResource’s address space in standard slot space.}
  69.     majorBaseOS                    = 12;                            {Offset to base of sResource in Major space.}
  70.     majorLength                    = 13;                            {Length of sResource in super slot space.}
  71.     sRsrcTest                    = 14;                            {sBlock diagnostic code}
  72.     sRsrccicn                    = 15;                            {Color icon}
  73.     sRsrcicl8                    = 16;                            {8-bit (indexed) icon}
  74.     sRsrcicl4                    = 17;                            {4-bit (indexed) icon}
  75.     sDRVRDir                    = 16;                            {sDriver directory}
  76.     sGammaDir                    = 64;                            {sGamma directory}
  77.     sRsrcVidNames                = 65;                            {Video mode name directory}
  78.     sRsrcDock                    = 80;                            {spID for Docking Handlers}
  79.     sDiagRec                    = 85;                            {spID for board diagnostics}
  80.     sVidAuxParams                = 123;                            {more video info for Display Manager -- timing information}
  81.     sDebugger                    = 124;                            {DatLstEntry for debuggers indicating video anamolies}
  82.     sVidAttributes                = 125;                            {video attributes data field (optional,word)}
  83.     fLCDScreen                    = 0;                            { bit 0 - when set is LCD, else is CRT}
  84.     fBuiltInDisplay                = 1;                            {      1 - when set is built-in (in the box) display, else not}
  85.     fDefaultColor                = 2;                            {      2 - when set display prefers multi-bit color, else gray}
  86.     fActiveBlack                = 3;                            {      3 - when set black on display must be written, else display is naturally black}
  87.     fDimMinAt1                    = 4;                            {      4 - when set should dim backlight to level 1 instead of 0}
  88.     fBuiltInDetach                = 4;                            {      4 - when set is built-in (in the box), but detaches}
  89.     sVidParmDir                    = 126;
  90.     sSuperDir                    = 254;
  91.  
  92. { =======================================================================    }
  93. { sResource types                                                            }
  94. { =======================================================================    }
  95.     catBoard                    = $0001;                        {Category for board types.}
  96.     catTest                        = $0002;                        {Category for test types -- not used much.}
  97.     catDisplay                    = $0003;                        {Category for display (video) cards.}
  98.     catNetwork                    = $0004;                        {Category for Networking cards.}
  99.     catScanner                    = $0008;                        {scanners bring in data somehow}
  100.     catCPU                        = $000A;
  101.     catIntBus                    = $000C;
  102.     catProto                    = $0011;
  103.     catDock                        = $0020;
  104. {<Type>}
  105.     typeBoard                    = $0000;
  106.     typeApple                    = $0001;
  107.     typeVideo                    = $0001;
  108.     typeEtherNet                = $0001;
  109.     typeStation                    = $0001;
  110.     typeDesk                    = $0002;
  111.     typeDSP                        = $0004;
  112.     typeXPT                        = $000B;
  113.     typeSIM                        = $000C;
  114.     typeDebugger                = $0100;
  115.     type68000                    = $0002;
  116.     type68020                    = $0003;
  117.     type68030                    = $0004;
  118.     type68040                    = $0005;
  119.     type601                        = $0025;
  120.     type603                        = $002E;
  121.     typeAppleII                    = $0015;
  122. {Driver Interface : <id.SW>}
  123.     drSwMacCPU                    = 0;
  124.     drSwAppleIIe                = $0001;
  125.     drSwApple                    = 1;                            {To ask for or define an Apple-compatible SW device.}
  126.     drSwMacsBug                    = $0104;
  127. {Driver Interface : <id.SW><id.HW>}
  128.     drHwTFB                        = 1;                            {HW ID for the TFB (original Mac II) video card.}
  129.     drHw3Com                    = 1;                            {HW ID for the Apple EtherTalk card.}
  130.     drHwBSC                        = 3;
  131.     drHwGemini                    = 1;
  132.     drHwDeskBar                    = 1;
  133.     drHwATT3210                    = $0001;
  134.     drHwBootBug                    = $0100;
  135. { video hardware id's  - <catDisplay><typVideo>}
  136.     drHwRBV                        = $0018;
  137.     drHwJMFB                    = $0019;
  138.     drHwElsie                    = $001A;
  139.     drHwTim                        = $001B;
  140.     drHwDAFB                    = $001C;
  141.     drHwGSC                        = $001E;
  142.     drHwDAFBPDS                    = $001F;
  143.     drHWVSC                        = $0020;
  144.     drHwApollo                    = $0021;
  145.     drHwSonora                    = $0022;
  146.     drHwReserved2                = $0023;
  147.     drHwColumbia                = $0024;
  148.     drHwCivic                    = $0025;
  149.     drHWPBLCD                    = $0027;
  150.     drHWCSC                        = $0028;
  151.     drHwJET                        = $0029;
  152.     drHWMEMCjr                    = $002A;
  153.     drHwValkyrie                = $002E;
  154.     drHwKeystone                = $002F;
  155.     drHWATI                        = $0055;
  156. { other drHW id's for built-in functions}
  157.     drHwSonic                    = $0110;
  158.     drHwMace                    = $0114;
  159.     drHwDblExp                    = $0001;
  160. { CPU board IDs - <catBoard> <typBoard> <0000> <0000>}
  161.     MIIBoardId                    = $0010;                        {Mac II Board ID}
  162.     ciVidBoardID                = $001F;                        {Aurora25 board ID}
  163.     CX16VidBoardID                = $0020;                        {Aurora16 board ID}
  164.     MIIxBoardId                    = $0021;                        {Mac IIx Board ID}
  165.     SE30BoardID                    = $0022;                        {Mac SE/30 Board ID}
  166.     MIIcxBoardId                = $0023;                        {Mac IIcx Board ID}
  167.     MIIfxBoardId                = $0024;                        {F19 board ID}
  168.     EricksonBoardID                = $0028;                        {}
  169.     ElsieBoardID                = $0029;                        {}
  170.     TIMBoardID                    = $002A;                        {}
  171.     EclipseBoardID                = $002B;                        {}
  172.     SpikeBoardID                = $0033;                        {}
  173.     DBLiteBoardID                = $0035;                        {}
  174.     ZydecoBrdID                    = $0036;                        {}
  175.     ApolloBoardID                = $0038;                        {}
  176.     PDMBrdID                    = $0039;                        {}
  177.     VailBoardID                    = $003A;                        {}
  178.     WombatBrdID                    = $003B;                        {}
  179.     ColumbiaBrdID                = $003C;                        {}
  180.     CycloneBrdID                = $003D;                        {}
  181.     CompanionBrdID                = $003E;                        {}
  182.     DartanianBoardID            = $0040;                        {}
  183.     DartExtVidBoardID            = $0046;                        {}
  184.     HookBoardID                    = $0047;                        {Hook internal video board ID}
  185.     EscherBoardID                = $004A;                        {Board ID for Escher (CSC)}
  186.     POBoardID                    = $004D;                        {Board ID for Primus/Optimus/Aladdin}
  187.     TempestBrdID                = $0050;                        {Non-official Board ID for Tempest}
  188.     BlackBirdBdID                = $0058;                        {Board ID for BlackBird}
  189.     BBExtVidBdID                = $0059;                        {Board ID for BlackBird built-in external video}
  190.     YeagerBoardID                = $005A;                        {Board ID for Yeager}
  191.     BBEtherNetBdID                = $005E;                        {Board ID for BlackBird Ethernet board}
  192.     TELLBoardID                    = $0065;                        {Board ID for TELL (Valkyrie)}
  193.     MalcolmBoardID                = $065E;                        {Board ID for Malcolm}
  194.     AJBoardID                    = $065F;                        {Board ID for AJ}
  195.     M2BoardID                    = $0660;                        {Board ID for M2}
  196.     OmegaBoardID                = $0661;                        {Board ID for Omega}
  197. { other board IDs}
  198.     BoardIDDblExp                = $002F;
  199.     DAFBPDSBoardID                = $0037;
  200.     MonetBoardID                = $0048;
  201.     SacSONIC16BoardID            = $004E;
  202.     SacSONIC32BoardID            = $004F;
  203. { CPU board types - <CatCPU> <Typ680x0> <DrSwMacCPU>}
  204.     drHWMacII                    = $0001;                        {Mac II hw ID}
  205.     drHwMacIIx                    = $0002;                        {Mac IIx hw ID}
  206.     drHWSE30                    = $0003;                        {Mac SE/30 hw ID}
  207.     drHwMacIIcx                    = $0004;                        {Mac IIcx hw ID}
  208.     drHWMacIIfx                    = $0005;                        {Mac IIfx hw ID}
  209.     drHWF19                        = $0005;                        {F19 hw ID}
  210.     sBlockTransferInfo            = 20;                            {general slot block xfer info}
  211.     sMaxLockedTransferCount        = 21;                            {slot max. locked xfer count}
  212.     boardId                        = 32;                            {Board Id}
  213.     pRAMInitData                = 33;                            {sPRAM init data}
  214.     primaryInit                    = 34;                            {Primary init record}
  215.     timeOutConst                = 35;                            {Time out constant}
  216.     vendorInfo                    = 36;                            {Vendor information List. See Vendor List, below}
  217.     boardFlags                    = 37;                            {Board Flags}
  218.     secondaryInit                = 38;                            {Secondary init record/code}
  219. { The following Id's are associated with all CPU sResources.}
  220.     MajRAMSp                    = 129;                            {ID of Major RAM space.}
  221.     MinROMSp                    = 130;                            {ID of Minor ROM space.}
  222.     vendorId                    = 1;                            {Vendor Id}
  223.     serialNum                    = 2;                            {Serial number}
  224.     revLevel                    = 3;                            {Revision level}
  225.     partNum                        = 4;                            {Part number}
  226.     date                        = 5;                            {Last revision date of the card}
  227.  
  228.     testByte                    = 32;                            {Test byte.}
  229.     testWord                    = 33;                            {0021}
  230.     testLong                    = 34;                            {Test Long.}
  231.     testString                    = 35;                            {Test String.}
  232.  
  233. { sResource List. Category: Display        Type: Video }
  234. { The following Id's are common to all Mode sResources in Display_Video }
  235. { functional sResources. }
  236.     mBlockTransferInfo            = 5;                            { slot block xfer info PER MODE }
  237.     mMaxLockedTransferCount        = 6;                            { slot max. locked xfer count PER MODE }
  238.  
  239.  
  240. { $ALIGN RESET}
  241. { $POP}
  242.  
  243. {$ENDC} {__ROMDEFS__}
  244.  
  245.  IMPLEMENTATION
  246.  END.
  247.  
  248.